package cn.tedu.spring.di;

import cn.tedu.spring.example.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.sql.SQLOutput;

public class TestUserDao {

    public static void main(String[] args) {

        ApplicationContext context = new AnnotationConfigApplicationContext
                ("cn/tedu/spring/di");
        UserService userservice = context.getBean(UserService.class);
        System.out.println(userservice);
    }
}
